package com.wx.gof.pattern.behavioral.observer.push;

/**
 * @ClassName Audience
 * @Author wx
 * @Description 观察者对象-观众
 * @Date 2018-12-14-21:03
 */
public class Audience implements Observer {
    private String name;

    public Audience(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println("观众" + this.name + "你关注的" + message);
    }
}
